<%
    if (session.getAttribute("userid") == null || !session.getAttribute("tipo_utente").toString().equals("1")) {
        session.invalidate();
        getServletContext().getRequestDispatcher("/MainController?q=index").forward(request, response);
    }
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tlds/asportoonline.tld" prefix="asportoonline" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>AsportoOnline | I miei locali</title>
        <style type="text/css">
            @import url("style.css");
        </style>
    </head>
    <body>
        <div class="meister">
            <div class="page">
                <div class="container">
                    <%@ include file="/WEB-INF/common/header.jsp"%>
                    <div class="navigation"> <a id="first" href="MainController?q=index">Home</a> > I miei locali </div>
                    <div class="uniform_background">
                        <div class="resultsArea">
                            <div class="listaLocali">
                                <h1>I locali di <%= un%></h1>

                                <p>${error}</p>

                                <asportoonline:elenco_locali locali="${lista_locali}"></asportoonline:elenco_locali>

                                <p><a href="MainController?q=register_restaurant">Inserisci un nuovo locale</a></p>
                            </div>
                        </div>
                    </div>
                    <%@ include file="/WEB-INF/common/footer.jsp"%>
                </div>
            </div>
        </div>        
    </body>
</html>
